import http from "@/utils/http"
// 出库订单
//获取表头统计
export function OutOrder_statecount() {
    return http.get('/by-outbound-apply/groupby-statecount')
}
//获取出库订单列表数据
export function OutBound_page(params) {
    return http.post('/by-outbound-order/page-OutBound-Order', params)
}
//获取出库订单列表详情数据
export function OutBound_rowInfo(params) {
    return http.get('/by-outbound-apply/' + params)
}
//点击更换状态
export function OutBound_updateState(params) {
    return http.put('/by-outbound-order/update-state/' + params)
}
//获取批次列表数据
export function OutBound_batchManage(params) {
    return http.post('/by-batch-manage/page-batchManage', params)
}
//更改批次状态
export function OutBound_batchManageState(params) {
    return http.put('/by-batch-manage/update-state/' + params)
}
//根据批次号查询订单
export function OutBound_batchManageApply(params) {
    return http.post('/by-batch-manage/list-outbound-apply/' + params)
}
//新增批次
export function OutBound_addBatch(params) {
    return http.post('/by-batch-manage', params)
}
//查询批次号
export function OutBound_batchList() {
    return http.get('/by-batch-manage/list')
}
//批次分配
export function OutBound_updateBatch(url, params) {
    return http.put(url, params)
}
//批次分配
export function OutBound_createWaybill(params) {
    return http.post('/by-outbound-apply/create-waybill', params)
}
//操作记录
export function OutBound_sysLog(params) {
    return http.get('/sys-log/' + params)
}
//保存箱子大小
export function OutBound_updateParcel(params) {
    return http.put('/by-outbound-order/update-parcel', params)
}
//详情生成运单
export function OutBound_addBuy(url, params) {
    return http.put('/by-outbound-order/add-buy/' + url, params)
}
//刷新包裹信息
export function OutBound_updateRates(params) {
    return http.get('/by-outbound-order/update-rates/' + params)
}
//验证地址信息
export function OutBound_addressVerify(params) {
    return http.get('/by-outbound-apply/address-verify/' + params)
}
//取消运单并退款
export function OutBound_refund(params) {
    return http.get('/by-outbound-order/refund/' + params)
}
//包裹追踪信息
export function OutBound_tackTetrieve(params) {
    return http.get('/by-outbound-order/tack-tetrieve/' + params)
}


//批量设置暂缓处理及异常处理
export function OutBound_updateDefer(url, params) {
    return http.post('/by-outbound-apply/update-defer/' + url, params)
}
//批量设置释放批次
export function OutBound_releaseBatch(params) {
    return http.put('/by-outbound-order/release-batch', params)
}

//批量编辑查询订单
export function OutBound_batchOrder(params) {
    return http.post('/by-outbound-order/batch-order', params)
}
//编辑运单后-保存
export function OutBound_saveBatch(params) {
    return http.post('/by-outbound-order/save-batch', params)
}
//编辑打印拣货单
export function OutBound_excelout(params) {
    return http.blobJson('/by-outbound-order/excelout', params)
}
//批量处理待仓库处理的物流类型订单
export function OutBound_delivery(params) {
    return http.post('/by-outbound-order/deal-order', params)
}
//批量确认发货
export function OutBound_confirm(params) {
    return http.post('/by-outbound-order/confirm-delivery', params)
}
// 下载PDF运单
export function OutBound_dowWay(params) {
    return http.blob('/by-outbound-order/dow-way?' + params)
    // 下载批次PDF运单
}
export function OutBound_batchDowWay(params) {
    return http.blob('/by-outbound-order/batch-dow-way?' + params)
}
// 下载Excel运单
export function OutBound_dowExcel(params) {
    return http.blob('/by-outbound-order/batch-excelout?' + params)
}
// 认领
export function OutBound_batchClaim(params) {
    return http.put('/by-batch-manage/claim/' + params)
}

// 获取费用服务项
export function cost_out(params) {
    return http.put('/incoming-Order/cost-out/'+params)
}